<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>公告页</title>
		<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover" />
		<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
		<link rel="stylesheet" href="../Common/css/lib/materialize.min.css">
		<link rel="stylesheet" href="../Common/css/ufun.css">
		<script src="../Common/js/lib/jquery-3.4.1.min.js"></script>
		<script src="../Common/js/lib/materialize.min.js"></script>
		<script src="../Common/js/tools.js"></script>
	</head>
	<style>
		iframe {
			width: 100%;
			height: 100vh;
			frameborder: 0;
			scrolling: yes;
		}
	</style>
	<body>
		<header>
			<div id="Left" class="com-btn" onmouseup="ThisClose();">
				<i class="material-icons">keyboard_arrow_left</i>
			</div>
			<div id="Title">公告标题</div>
		</header>
		<iframe id='url' src=""></iframe>
	</body>
	<script>
		var userHash;
		var current;
		document.addEventListener('plusready', () => {
			DoWait();
			GetStatusTop();
			current = plus.webview.currentWebview();
			userHash = plus.storage.getItem("userHash");
			var self = plus.webview.currentWebview();
			var id = self.id; //获取跳转过来带的参数
			let data = {
				noticeId: id
			}
			console.log(id)
			CallAJAX('getNotice', data, function(res) {
				console.log(res)
				$('#Title').text(res.title)
				$('#url').attr("src", res.noticeURL);
			}, function(e) {
				console.log(JSON.stringify(e));
			})
			DoShow(current, 'none', 0);
		})
	</script>
</html>
